package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"novel-test/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/upload", &controllers.NovelController{}, "post:Upload")

	beego.Router("/add", &controllers.NovelController{}, "post:Add")

	beego.Router("/pagelist", &controllers.NovelController{}, "get:PageList")

	beego.Router("/login", &controllers.UserController{}, "post:Login")

	beego.Router("/list", &controllers.UserController{}, "get:List")

	beego.Router("/detail", &controllers.UserController{}, "get:Detail")

	beego.Router("/del", &controllers.NovelController{}, "get:Del")
}
